unit uLoginForm;

interface

uses
  System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
  FMX.Types, FMX.Controls, FMX.Forms, FMX.Dialogs, FMX.Edit;

type
  TfrmLogin = class(TForm)
    edtUsername: TEdit;
    Label1: TLabel;
    edtPassword: TEdit;
    Label2: TLabel;
    btnLogin: TButton;
    btnCancel: TButton;
    edtServer: TEdit;
    Label3: TLabel;
    procedure edtUsernameChange(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  frmLogin: TfrmLogin;

implementation

{$R *.fmx}

procedure TfrmLogin.edtUsernameChange(Sender: TObject);
begin
  btnLogin.Enabled := (edtServer.Text <> '');
end;

end.
